[PWGUD] Adding bc-by-bc trigger info and getting info from DB#17058
[PWGUD] Adding bc-by-bc trigger info and getting info from DB#17058jgcn wants to merge 3 commits into
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/o2 for 6d6f50c at 2026-07-14 14:39: Full log here. |
|
Error while checking build/O2Physics/code-check for 6d6f50c at 2026-07-14 14:42: Full log here. |
|
Error while checking build/O2Physics/staging for 6d6f50c at 2026-07-14 14:48: Full log here. |
|
Error while checking build/O2Physics/code-check for aebc723 at 2026-07-15 14:56: Full log here. |
|
|
||
| // fill output table | ||
| int recoFlag = (col.flags() & dataformats::Vertex<o2::dataformats::TimeStamp<int>>::Flags::UPCMode) ? 1 : 0; | ||
| int recoFlag = static_cast<int>((col.flags() & dataformats::Vertex<o2::dataformats::TimeStamp<int>>::Flags::UPCMode) ? true : false); |
There was a problem hiding this comment.
This is wrong. You are converting int -> bool on the left side of ? and converting bool -> int on the right side.
You can simply use TESTBIT(col.flags(), dataformats::Vertex<o2::dataformats::TimeStamp<int>>::Flags::UPCMode) ? 1 : 0.
There was a problem hiding this comment.
Also, what do 1 and 0 mean?
Major changes:
get ITS ROF info from database instead of having it hardwired
add info on bc-by.bc triggers
Minor changes:
better definition of TF axis